import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      component: () => import("../pages/home/Index.vue"),
    },
    {
      path: "/about",
      component: () => import("../pages/about/Index.vue"),
    },
    {
      path: "/cart",
      component: () => import("../pages/cart/Index.vue"),
    },
    {
      path: "/mine",
      component: () => import("../pages/mine/Index.vue"),
    },
    {
      path: "/detail",
      component: () => import("../pages/detail/Index.vue"),
    },
  ],
});

export default router;
